﻿<UserControl x:Class="BuyTicket.Views.ArgsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             d:DesignHeight="347"
             d:DesignWidth="474"
             FontSize="16"
             Loaded="UserControl_Loaded"
             mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="20" />
            <RowDefinition Height="30" />
            <RowDefinition Height="30" />
            <RowDefinition Height="*" />
            <RowDefinition Height="30" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="12*" />
            <ColumnDefinition Width="24*" />
            <ColumnDefinition Width="12*" />
            <ColumnDefinition Width="24*" />
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="1"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="起始站：" />
        <TextBlock Grid.Row="1"
                   Grid.Column="2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="终点站：" />
        <TextBlock Grid.Row="2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="日　期：" />
        <TextBlock Grid.Row="4"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="姓　名：" />
        <TextBlock Grid.Row="4"
                   Grid.Column="2"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="电　话：" />
        <TextBlock Grid.Row="5"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   Text="证　件：" />
        <ComboBox Name="cmbStart"
                  Grid.Row="1"
                  Grid.Column="1"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Center" />
        <ComboBox Name="cmbEnd"
                  Grid.Row="1"
                  Grid.Column="3"
                  HorizontalAlignment="Stretch"
                  VerticalAlignment="Center"
                  HorizontalContentAlignment="Center" />
        <DatePicker Name="dateTime"
                    Grid.Row="2"
                    Grid.Column="1"
                    HorizontalAlignment="Stretch"
                    VerticalAlignment="Center"
                    HorizontalContentAlignment="Center"
                    SelectedDateFormat="Short" />
        <TextBox Name="txtName"
                 Grid.Row="4"
                 Grid.Column="1"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Center"
                 HorizontalContentAlignment="Center" />
        <TextBox Name="txtPhone"
                 Grid.Row="4"
                 Grid.Column="3"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Center"
                 HorizontalContentAlignment="Center" />
        <TextBox Name="txtCard"
                 Grid.Row="5"
                 Grid.Column="1"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Center"
                 HorizontalContentAlignment="Center" />
        <ListBox Name="listPerson"
                 Grid.Row="6"
                 Grid.Column="1"
                 Grid.ColumnSpan="3"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Stretch">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Border Margin="3"
                            HorizontalAlignment="Stretch"
                            BorderBrush="Gray"
                            BorderThickness="1">
                        <StackPanel Orientation="Vertical">
                            <StackPanel Orientation="Horizontal">
                                <TextBlock>
                                    <Run Text="姓名：" />
                                    <Run Text="{Binding Name}" />
                                </TextBlock>
                                <Rectangle MinWidth="20" />
                                <TextBlock>
                                    <Run Text="电话：" />
                                    <Run Text="{Binding Phone}" />
                                </TextBlock>
                            </StackPanel>
                            <TextBlock>
                                <Run Text="证件：" />
                                <Run Text="{Binding Card}" />
                            </TextBlock>
                        </StackPanel>
                    </Border>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <Button Name="btnNext"
                Grid.Row="7"
                Grid.Column="3"
                MinWidth="100"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Click="btnNext_Click"
                Content="下一步" />
        <Button Name="btnAdd"
                Grid.Row="5"
                Grid.Column="3"
                MinWidth="60"
                HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Click="btnAdd_Click"
                Content="添加" />
        <CheckBox Name="ckStudent"
                  Grid.Row="2"
                  Grid.Column="3"
                  HorizontalAlignment="Left"
                  VerticalAlignment="Center"
                  Content="是否学生" />
        <Label  Grid.Column="1" Grid.Row="7"  HorizontalAlignment="Center" VerticalAlignment="Center" >
            <Hyperlink Click="Hyperlink_Click">跳转至浏览器打开</Hyperlink>
        </Label>
    </Grid>
</UserControl>
